﻿using QLHREntities;
using QLHuongRungDAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLHuongRungBUS
{
    public class NguyenLieuBUS
    {
        private NguyenLieuDAO nlDAO = new NguyenLieuDAO();
        public NguyenLieuBUS() { }

        public QLHREntities.NguyenLieu LayNguyenLieu(int MaNguyenLieu)
        {
            return nlDAO.LayNguyenLieu(MaNguyenLieu);
        }

        public void CapNhatKho(QLHREntities.NguyenLieu nl)
        {
            nlDAO.CapNhatKho(nl);
        }
        public List<NguyenLieuDatHang> LayDanhSachNguyenLieu(int maThucDon)
        {
            return nlDAO.LayDanhSachNguyenLieu(maThucDon);
        }
    }
}
